Optimal. Leaf size=197 \[ -\frac {\sin \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Ci}\left (x d+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{2 a}-\frac {\sin \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {Ci}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 a}+\frac {\cos \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {Si}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 a}-\frac {\cos \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Si}\left (x d+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{2 a}+\frac {\sin (c) \text {Ci}(d x)}{a}+\frac {\cos (c) \text {Si}(d x)}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.38, antiderivative size = 197, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {3345, 3303, 3299, 3302} \[ -\frac {\sin \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {CosIntegral}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{2 a}-\frac {\sin \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {CosIntegral}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 a}+\frac {\cos \left (\frac {\sqrt {-a} d}{\sqrt {b}}+c\right ) \text {Si}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 a}-\frac {\cos \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Si}\left (x d+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{2 a}+\frac {\sin (c) \text {CosIntegral}(d x)}{a}+\frac {\cos (c) \text {Si}(d x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3299
Rule 3302
Rule 3303
Rule 3345
Rubi steps
\begin {align*} \int \frac {\sin (c+d x)}{x \left (a+b x^2\right )} \, dx &=\int \left (\frac {\sin (c+d x)}{a x}-\frac {b x \sin (c+d x)}{a \left (a+b x^2\right )}\right ) \, dx\\ &=\frac {\int \frac {\sin (c+d x)}{x} \, dx}{a}-\frac {b \int \frac {x \sin (c+d x)}{a+b x^2} \, dx}{a}\\ &=-\frac {b \int \left (-\frac {\sin (c+d x)}{2 \sqrt {b} \left (\sqrt {-a}-\sqrt {b} x\right )}+\frac {\sin (c+d x)}{2 \sqrt {b} \left (\sqrt {-a}+\sqrt {b} x\right )}\right ) \, dx}{a}+\frac {\cos (c) \int \frac {\sin (d x)}{x} \, dx}{a}+\frac {\sin (c) \int \frac {\cos (d x)}{x} \, dx}{a}\\ &=\frac {\text {Ci}(d x) \sin (c)}{a}+\frac {\cos (c) \text {Si}(d x)}{a}+\frac {\sqrt {b} \int \frac {\sin (c+d x)}{\sqrt {-a}-\sqrt {b} x} \, dx}{2 a}-\frac {\sqrt {b} \int \frac {\sin (c+d x)}{\sqrt {-a}+\sqrt {b} x} \, dx}{2 a}\\ &=\frac {\text {Ci}(d x) \sin (c)}{a}+\frac {\cos (c) \text {Si}(d x)}{a}-\frac {\left (\sqrt {b} \cos \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\sin \left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{\sqrt {-a}+\sqrt {b} x} \, dx}{2 a}-\frac {\left (\sqrt {b} \cos \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\sin \left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{\sqrt {-a}-\sqrt {b} x} \, dx}{2 a}-\frac {\left (\sqrt {b} \sin \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\cos \left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{\sqrt {-a}+\sqrt {b} x} \, dx}{2 a}+\frac {\left (\sqrt {b} \sin \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right )\right ) \int \frac {\cos \left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{\sqrt {-a}-\sqrt {b} x} \, dx}{2 a}\\ &=\frac {\text {Ci}(d x) \sin (c)}{a}-\frac {\text {Ci}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right ) \sin \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{2 a}-\frac {\text {Ci}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right ) \sin \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right )}{2 a}+\frac {\cos (c) \text {Si}(d x)}{a}+\frac {\cos \left (c+\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Si}\left (\frac {\sqrt {-a} d}{\sqrt {b}}-d x\right )}{2 a}-\frac {\cos \left (c-\frac {\sqrt {-a} d}{\sqrt {b}}\right ) \text {Si}\left (\frac {\sqrt {-a} d}{\sqrt {b}}+d x\right )}{2 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.37, size = 179, normalized size = 0.91 \[ -\frac {\sin \left (c-\frac {i \sqrt {a} d}{\sqrt {b}}\right ) \text {Ci}\left (d \left (x+\frac {i \sqrt {a}}{\sqrt {b}}\right )\right )+\sin \left (c+\frac {i \sqrt {a} d}{\sqrt {b}}\right ) \text {Ci}\left (d \left (x-\frac {i \sqrt {a}}{\sqrt {b}}\right )\right )+\cos \left (c-\frac {i \sqrt {a} d}{\sqrt {b}}\right ) \text {Si}\left (d \left (x+\frac {i \sqrt {a}}{\sqrt {b}}\right )\right )-\cos \left (c+\frac {i \sqrt {a} d}{\sqrt {b}}\right ) \text {Si}\left (\frac {i \sqrt {a} d}{\sqrt {b}}-d x\right )-2 \sin (c) \text {Ci}(d x)-2 \cos (c) \text {Si}(d x)}{2 a} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.75, size = 168, normalized size = 0.85 \[ \frac {-2 i \, {\rm Ei}\left (i \, d x\right ) e^{\left (i \, c\right )} + 2 i \, {\rm Ei}\left (-i \, d x\right ) e^{\left (-i \, c\right )} + i \, {\rm Ei}\left (i \, d x - \sqrt {\frac {a d^{2}}{b}}\right ) e^{\left (i \, c + \sqrt {\frac {a d^{2}}{b}}\right )} + i \, {\rm Ei}\left (i \, d x + \sqrt {\frac {a d^{2}}{b}}\right ) e^{\left (i \, c - \sqrt {\frac {a d^{2}}{b}}\right )} - i \, {\rm Ei}\left (-i \, d x - \sqrt {\frac {a d^{2}}{b}}\right ) e^{\left (-i \, c + \sqrt {\frac {a d^{2}}{b}}\right )} - i \, {\rm Ei}\left (-i \, d x + \sqrt {\frac {a d^{2}}{b}}\right ) e^{\left (-i \, c - \sqrt {\frac {a d^{2}}{b}}\right )}}{4 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin \left (d x + c\right )}{{\left (b x^{2} + a\right )} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.04, size = 200, normalized size = 1.02 \[ -\frac {\Si \left (d x +c -\frac {d \sqrt {-a b}+c b}{b}\right ) \cos \left (\frac {d \sqrt {-a b}+c b}{b}\right )+\Ci \left (d x +c -\frac {d \sqrt {-a b}+c b}{b}\right ) \sin \left (\frac {d \sqrt {-a b}+c b}{b}\right )}{2 a}-\frac {\Si \left (d x +c +\frac {d \sqrt {-a b}-c b}{b}\right ) \cos \left (\frac {d \sqrt {-a b}-c b}{b}\right )-\Ci \left (d x +c +\frac {d \sqrt {-a b}-c b}{b}\right ) \sin \left (\frac {d \sqrt {-a b}-c b}{b}\right )}{2 a}+\frac {\Si \left (d x \right ) \cos \relax (c )+\Ci \left (d x \right ) \sin \relax (c )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin \left (d x + c\right )}{{\left (b x^{2} + a\right )} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sin \left (c+d\,x\right )}{x\,\left (b\,x^2+a\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin {\left (c + d x \right )}}{x \left (a + b x^{2}\right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________